//
//  LoginViewModel.h
//  SAILIN
//
//  Created by 崔国冠 on 2018/10/19.
//  Copyright © 2018年 赛麟. All rights reserved.
//

#import "NIBaseViewModel.h"

@interface LoginViewModel : NIBaseViewModel

//NILoginCode
@property(nonatomic,strong)NSNumber *  loginCode;
@property(nonatomic)NSString* resultMsg;
@property(nonatomic)NIResultObject* resultObject;

@property(nonatomic,strong)NSNumber *  loginByThirdCode;
@property(nonatomic)NSString* loginByThirdMsg;

/**
 登录,手机号密码登录
 
 @param phone 手机号
 @param password 密码
 */
- (void)loginWithPhone:(NSString *)phone password:(NSString *)password;

/**
 第三方账号登录
 
 @param unionid 第三方unionid
 @param token 第三方token
 @param type 登录类型’qq’,’weixin’
 @param mobile 手机号
 @param pwd 密码
 @param code 验证码
 @param isLogin 是否登录
 */
-(void)loginByThirdUnionid:(NSString *)unionid accessToken:(NSString *)token type:(NSString *)type mobile:(NSString *)mobile pwd:(NSString *)pwd code:(NSString *)code nickname:(NSString *)nickname headUrl:(NSString *)headUrl isLogin:(BOOL)isLogin;
/**
 游客登录
 */
- (void)loginByDemo;
/**
 清除数据
 */
- (void)clearData4loginDemo;
@end
